package com.kcwx.system.dtomap;

import org.mapstruct.*;
import com.kcwx.system.domain.SysPost;
import com.kcwx.shareddomain.system.dto.SysPostEditDto;

/**
 * 岗位 mapstruct
 *
 */
@Mapper(componentModel = "spring",unmappedSourcePolicy= ReportingPolicy.IGNORE,nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface SysPostMap {
    /** addDto to Entity*/
    @Mappings({@Mapping(target = "id", ignore = true)})
    SysPost AddDtoToEntity(SysPostEditDto addDto);
    /** editDto to Entity*/
    SysPost EditDtoToEntity(SysPostEditDto editDto);
}
